package com.three.storemanage.mapper;


import com.three.core.entity.UserBalance;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 86156
* @description 针对表【tb_user_balance(余额)】的数据库操作Mapper
* @createDate 2025-03-26 20:42:24
* @Entity com.aaa.entity.UserBalance
*/
@Mapper
public interface UserBalanceMapper {

    int deleteByPrimaryKey(Long id);

    int insert(UserBalance record);

    int insertSelective(UserBalance record);

    UserBalance selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserBalance record);

    int updateByPrimaryKey(UserBalance record);

    int updateAmountByUserId(@Param("payMoney") Double payMoney, @Param("storeId") Integer storeId, @Param("userId") Integer userId);
}
